updating oE copy_file

copy_file

include filesys.e 
namespace filesys 
public function copy_file(sequence src, sequence dest, integer overwrite = 0) 

copies a file.

Parameters:
  1. src : a sequence, the name of the file or directory to copy
  2. dest : a sequence, the new name or location of the file
  3. overwrite : an integer; 0 (the default) will prevent an existing destination file from being overwritten. Non-zero will overwrite the destination file.
Returns:

An integer, 0 on failure, 1 on success.

Comments:

If overwrite is true, and if dest file already exists, the function overwrites the existing file and succeeds.

See Also:

move_file, rename_file

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu